package com.linkhouse.service.impl;

import com.linkhouse.domain.bo.TbOldRoomBO;
import com.linkhouse.domain.po.TbOldRoom;
import com.linkhouse.mapper.TbOldRoomMapper;
import com.linkhouse.service.TbOldRoomService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

@Service
public class TbOldRoomServiceImpl implements TbOldRoomService {

    @Autowired
    private TbOldRoomMapper tbOldRoomMapper;

    @Override
    public Integer insert(TbOldRoomBO tbOldRoomBO) {
        TbOldRoom tbOldRoom = new TbOldRoom();
        BeanUtils.copyProperties(tbOldRoomBO,tbOldRoom);
        return tbOldRoomMapper.insert(tbOldRoom);
    }
}
